from User import User
class Admin(User):
    def __init__(self, name, age, privileges):
        super().__init__(name, age)
        self.privileges = Privileges(privileges)

    def descript(self):
        super().descript()
        self.privileges.descript()


class Privileges:
    def __init__(self, privileges=None):
        if privileges is None:
            privileges = ['add', 'query', 'delete', 'update']
        self.privileges = privileges

    def descript(self):
        print(self.privileges)
